Optimal. Leaf size=32 \[ -\frac{\tanh ^{-1}\left (\frac{a-b x}{\sqrt{a^2+b^2}}\right )}{\sqrt{a^2+b^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0254946, antiderivative size = 32, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {618, 206} \[ -\frac{\tanh ^{-1}\left (\frac{a-b x}{\sqrt{a^2+b^2}}\right )}{\sqrt{a^2+b^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 618
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{b+2 a x-b x^2} \, dx &=-\left (2 \operatorname{Subst}\left (\int \frac{1}{4 \left (a^2+b^2\right )-x^2} \, dx,x,2 a-2 b x\right )\right )\\ &=-\frac{\tanh ^{-1}\left (\frac{a-b x}{\sqrt{a^2+b^2}}\right )}{\sqrt{a^2+b^2}}\\ \end{align*}
Mathematica [A] time = 0.0102485, size = 41, normalized size = 1.28 \[ -\frac{\tan ^{-1}\left (\frac{b x-a}{\sqrt{-a^2-b^2}}\right )}{\sqrt{-a^2-b^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.136, size = 31, normalized size = 1. \begin{align*}{{\it Artanh} \left ({\frac{2\,bx-2\,a}{2}{\frac{1}{\sqrt{{a}^{2}+{b}^{2}}}}} \right ){\frac{1}{\sqrt{{a}^{2}+{b}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.09927, size = 149, normalized size = 4.66 \begin{align*} \frac{\log \left (\frac{b^{2} x^{2} - 2 \, a b x + 2 \, a^{2} + b^{2} + 2 \, \sqrt{a^{2} + b^{2}}{\left (b x - a\right )}}{b x^{2} - 2 \, a x - b}\right )}{2 \, \sqrt{a^{2} + b^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.323216, size = 102, normalized size = 3.19 \begin{align*} - \frac{\sqrt{\frac{1}{a^{2} + b^{2}}} \log{\left (x + \frac{- a^{2} \sqrt{\frac{1}{a^{2} + b^{2}}} - a - b^{2} \sqrt{\frac{1}{a^{2} + b^{2}}}}{b} \right )}}{2} + \frac{\sqrt{\frac{1}{a^{2} + b^{2}}} \log{\left (x + \frac{a^{2} \sqrt{\frac{1}{a^{2} + b^{2}}} - a + b^{2} \sqrt{\frac{1}{a^{2} + b^{2}}}}{b} \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.37932, size = 74, normalized size = 2.31 \begin{align*} -\frac{\log \left (\frac{{\left | 2 \, b x - 2 \, a - 2 \, \sqrt{a^{2} + b^{2}} \right |}}{{\left | 2 \, b x - 2 \, a + 2 \, \sqrt{a^{2} + b^{2}} \right |}}\right )}{2 \, \sqrt{a^{2} + b^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]